@import  'reset-color.less';

/*首页分类导航*/
.homepage-category-nav {
  list-style: none;
  padding:10px 5px;
  margin-bottom: 30px;
  background: #f9f9f9;
  border-bottom: 1px dotted #ccc;
  font-size: 16px;
  margin-left: 0;
}

.homepage-category-nav li {
  display: inline-block;
}

.homepage-category-nav li a {
  text-decoration: none;
  line-height: 32px;
  padding: 0 15px;
  display: inline-block;
  border-bottom: 2px solid #f9f9f9;
}

.homepage-category-nav li a:hover {
  border-bottom-color: #d9d9d9;
  text-decoration: none;
}
----
.course-grid:hover {
  /*box-shadow: 0 2px 8px #bbb;*/
  border-color: #e57259;
}

.homepage .news li em {
  width: 85px;
  float: right;
  text-align: right;
  font-style: normal;
  color: #a9a9a9;
}

.homepage .news ul.row {
  margin-right: -10px;
  margin-left: -10px;
  padding-left: 0px;
  list-style: none;
}

.homepage .news li span {
  color: #428bca;
  margin-right: 5px;
  text-decoration: none;
}

.homepage .news li a {
  color: #222;
  display: block;
  height: 20px;
  line-height: 20px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.homepage .teachers ul, 
.homepage .vip ul {
  margin-right: -10px;
  margin-left: -10px;
  padding-left: 0px;
  list-style: none;
}

.homepage .topic ul {
  margin-right: -15px;
  margin-left: -15px;
  padding-left: 0px;
  list-style: none;
}

.teachers li, .vip li {
  padding-right: 10px;
  padding-left: 10px;
}

.teachers-item {
  margin-bottom: 20px;
  padding: 20px 10px;
  border: 1px solid #e1e1e1;
  text-align: center;
}

.teachers-item a, .promot-teacher a {
  display: block;
  line-height: 24px;
  text-decoration: none;
}

.teachers-item img {
  display: inline-block;
  margin-bottom: 10px;
  width: 80px;
  height: 80px;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

.teachers-item span {
  line-height: 24px;
  height: 24px;
  display: block;
  overflow: hidden;
  color: #00b780;
}

.teachers-item i {
  margin-bottom: 10px;
  display: block;
  font-style: normal;
  height: 15px;
  line-height: 15px;
  overflow: hidden;
}

.teachers-item p {
  margin-top: 20px;
  font-size: 12px;
  height: 40px;
  text-align: left;
}

.vip-item {
  border: 1px solid #e1e1e1;
}

.vip-item .row {
  margin-left: -15px;
  margin-right: -15;
}

.vip-lists li {
  margin-bottom: 20px;
}

.vip-item h3, .vip-item p {
  color: #555;
}

.vip-item h4 {
  color: #e57259;
  text-decoration: none;
  text-align: center;
}

.vip-item img {
  width: 100%;
}

.vip-item a {
  overflow: hidden;
}
.vip-item h3{
  @media (max-width: 767px) {
    padding: 0 10px;
  }
}
.vip-item p{
  margin: 0;
  @media (max-width: 767px) {
    height: 60px;
    overflow: hidden;
    padding: 0 10px;
  }
}
.vip-item .row{
  @media (max-width: 767px) {
    margin-left: -10px;
    margin-right: -10px;

  } 
}
.vip-price {
  margin-top: 20px;
}

.topic-item {
  display: block;
  margin-bottom: 20px;
  padding: 5px;
  border: 1px solid #e1e1e1; 
}

.topic-item h4 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-item h4 > a {
  color: #444;
}


.topic > ul > li {
  overflow: hidden;
  margin-bottom: 25px;
  text-decoration: none;
}

.topic-body {
  display: block;
  overflow: hidden;
}

.topic-body img {
  width: 42px;
  height: 42px;
  margin-right: 10px;
}

.topic-body h3 {
  margin: 0;
  padding: 0;
}

.topic-body p {
  line-height: 20px;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-bottom {
  margin-top: 20px;
}

.tag-list a {
  border-radius: 5px;
  margin: 0 10px 10px 0;
  padding: 0 15px;
  display: inline-block;
  font-weight: 800;
  border: 1px solid #ddd;
  height: 30px;
  line-height: 30px;
  color: #777;
  text-decoration: none;
  background: #ddd;
}

.tag-list a:hover {
  border: 1px solid #096;
  color: #fff;
  background: #096;
}

.courses-rank li {
  border-bottom: 1px solid #ddd;
  overflow: hidden;
  zoom: 1;
}

.courses-rank li img {
  display: block;
  width: 80px;
  height: 45px;
  margin: 0 15px 5px 0;
}

.courses-rank .course-title {
  color: #444;
  line-height: 45px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
} 

.status-side ul {
  padding-left: 0;
  list-style: none;
}

.status-side li {
  overflow: hidden;
}

.status-side li img {
  width: 50px;
  height: 50px;
}

.user-learn {
  border: 1px solid #ddd;
}

.user-learn img {
  width: 120px;
  height: 67px;
  margin-right: 5px;
  margin-bottom: 10px;
}

.user-learn p {
  line-height: 22px;
  font-weight: 700;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-learn .teacher-name {
  font-size: 12px;
}

.user-learn .progress {
  height: 5px;
  margin-left: 10px;
  margin-bottom: 5px;
  overflow: hidden;
  background-color: #f5f5f5;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.1);
}

.user-learn .progress-bar {
  background-color: #096;
}

.user-learn .percentage {
  font-size: 12px;
  color: #aaa;
  margin-left: 10px;
}

.user-learn .continue {
  overflow: hidden;
  margin: 0 10px 10px;
}
.banner-announcement {
    background: #ebf6f1;
    height: 40px;
    margin-top: 0;
    margin-bottom: 0;
}

/* =========================== index =========================== */
.home-class-list {
  padding: 0;
  margin: 0;
  list-style-type: none;
}
 @media (max-width: 767px) {
  .course-wide-list,.home-class-list {
    margin: 0 -5px;
  }
 }
.navbar-right .es-header{
  background: #363e45
}

.home-class-list .class-item {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #fff;
  @media (max-width: 767px) {
    width: 50%;
    float: left;
    padding: 0 5px;
    border:none;
    margin-bottom: 10px;
  }
}
.home-class-list .class-item:hover {
  background: #f9f9f9;
}
 @media (max-width: 767px) {
  .home-class-list .class-item:hover{
     background: transparent;
  }
  .home-class-list .class-body:hover{
    background: #f9f9f9;
  }
 }
.home-class-list .class-body {
  padding: 10px 0;
  @media (max-width: 767px) {
    padding: 10px ;
    border:1px solid #ddd;
   
  }
}
.home-class-list .class-picture-link {
  float: left;
  margin-right: 25px;
}
@media (max-width: 767px) {
  .home-class-list .class-picture-link {
    float: none;
    display: block;
    margin-right: 0;
  }
}
.home-class-list .class-picture-link > img {
  width: 213px;
}
@media (max-width: 1199px) {
  .home-class-list .class-picture-link > img{
    width: 162px;
  }
}
@media (max-width: 991px) {
  .home-class-list .class-picture-link > img{
    width: 213px;
  }
}
@media (max-width: 767px) {
  .home-class-list .class-picture-link > img {
    width: 100%;
    display: block;
  }
}
.home-class-list .class-title {
  margin-bottom: 15px;
  margin-top: 0;
  font-size: 16px;
  height: 48px;
  line-height: 24px;
  color: #222;
  overflow: hidden;
  @media (max-width: 767px) {
    margin-bottom: 5px;
    height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
  }
}
.home-class-list .class-title a {
  font-weight: bold;
  color: #555;
}
.home-class-list .class-metas {
  margin-bottom: 20px;
  color: #999;
  @media (max-width: 767px) {
    margin-bottom: 10px;
  }
}
.home-class-list .class-metas .fa {
  margin-right: 5px;
  font-size: 18px;
   @media (max-width: 479px) {
    font-size: 14px;
   }
}
.home-class-list .class-metas a {
  color: #555;
}
.home-class-list .class-teacher {
  margin-right: 20px;
}
.home-class-list .class-teacher span {
  margin-right: 10px;
}
@media (max-width: 767px) {
  .home-class-list .class-teacher {
    display: block;
    margin-right: 0;
    margin-bottom: 10px;
  }
}
.home-class-list .class-price {
  float: right;
  font-size: 18px;
  @media (max-width: 767px) {
    font-size: 14px;
  }
}
@media (min-width: 1200px) {
  .home-class-list .class-price {
    margin-right: 50px;
  }
}
@media (max-width: 767px) {
.course-grid{
    width: 50%;
    float: left;
    margin: 0 0 10px 0;
    padding: 0 5px;
    border:none;
    .grid-body{
      width: 100%;
      border: 1px solid #e1e1e1;
    }
  }
}

.course-grid .title{
     overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    word-wrap: normal;
}



@media (max-width: 767px) {
  .homepage .teachers ul{
    margin: 0 -5px;
  }
  .course-grids{
    margin:0  -5px;
  }
  .teachers li{
    padding: 0 5px;
  }
  .es-row-wrap .row-9-3{
    margin: 0 5px;
  }
  .es-row-wrap .col-md-9, .es-row-wrap .col-md-3{
    padding: 0 5px;
  }
  .course-list .row{
    margin: 0 -5px;
  }
  .course-list .col-xs-6{
    padding: 0 5px;
  }
  .course-list .course-item{
    margin: 0;
    margin-bottom: 10px;
  }
  .homepage .vip ul{
    margin-right: -5px;
    margin-left: -5px;
  }
 
  .vip li{
    padding: 0 5px;
  }
}